import request from '@/utils/request'
// 更新裁判头像



// 裁判头像头像上传
export function Fereesavatar(data) {
  return request({
    url: '/sportferees/ferees/Fereesavatar/profile',
    method: 'post',
    data: data
  })
}


//管理员查询学生信息
export function querystudentgradelist(query) {
  return request({
    url: '/sportferees/ferees/querygradelist',
    method: 'get',
    params: query
  })
}


// 查询裁判员列表
export function listFerees(query) {
  return request({
    url: '/sportferees/ferees/list',
    method: 'get',
    params: query
  })
}

// 查询裁判员详细
export function getFerees(refereesUid) {
  return request({
    url: '/sportferees/ferees/' + refereesUid,
    method: 'get'
  })
}

// 新增裁判员
export function addFerees(data) {
  return request({
    url: '/sportferees/ferees',
    method: 'post',
    data: data
  })
}

// 修改裁判员
export function updateFerees(data) {
  return request({
    url: '/sportferees/ferees',
    method: 'put',
    data: data
  })
}

// 删除裁判员
export function delFerees(refereesUid) {
  return request({
    url: '/sportferees/ferees/' + refereesUid,
    method: 'delete'
  })
}
